/**
 * webpack配置文件 - 开发环境
 * @module webpack
 * @author zhanghuan
 * @date 2021/03/10
 */
const webpackCommon = require('./webpack.common')

process.env.NODE_ENV = 'development'

module.exports = {
    ...webpackCommon,
    devServer: {
        port: 8080,
        open: true,
        proxy: {
            '/api': {
                target: 'http://localhost:3000', //服务地址
                ws: false,
                changeOrigin: true,
                pathRewrite: { '^/api': '' }
            },
        }
    },
};